package com.ly.work.zk;

public class Main {

    public static int i = 0;

    //创建对象
    public static Main main = new Main();
    public static void main(String[] args) throws InterruptedException {

        //奇数线程
        OddThread oddThread = new OddThread();
        //偶数线程
        EvenThread evenThread = new EvenThread();

        //执行线程
        oddThread.start();
        evenThread.start();


        Thread.sleep(5000);
        System.out.println("执行结束");


    }
}
